from django.conf.urls.defaults import *

from Wartime.wartime.views import SitePages
page_pattern = r'^/(?P<player_id>\d+)/(?P<page_name>%s)?$' % '|'.join(SitePages.getAnchors())

urlpatterns = patterns('Wartime.wartime.views',
                       (page_pattern, 'render'),
                       (r'^/create/?$', 'create_chieftain'),
                       (r'^/?(login/)?$', 'login_page'))
